<template>
  <div>我是inject组件 {{ title }}</div>
</template>

<script lang="ts" setup>
import { inject } from 'vue'
const title = inject('title')
</script>